﻿using System;
using System.Collections.Generic;
using System.Text;
using FacadePattern;

namespace FacadePatternDome
{
    class Program
    {
        static void Main(string[] args)
        {
            Client client = new Client();
            client.Name = "范伟伟";
            client.CreditCount = 500000;
            SellsMan sells = new SellsMan(client);
            House house=sells.Buy(100000);
            if (house != null)
                Console.WriteLine(string.Format("{0}将{1}房屋卖给了{2}", sells.LandAgent.Name, house.ID, client.Name));
            else
                Console.WriteLine("交易失败");
            Console.ReadLine();
        }
    }
}
